<ng-container *ngIf="tagData.data?.type === 'discount'; else elseTemplate">
  <div [ngStyle]="tagData.cssStyle | styleFilter">
    <div class="second-bg">
      <img src="assets/fw/detail_qg_bg.png" alt="" class="second-img-bg">
      <img src="assets/fw/detail_xsqg.png" alt="" class="second-img">
      <div class="price-bg">
        <p class="price">
          <span class="unit">{{tagData.data.discount_company}}</span>
          <span class="price-price">{{tagData.data.discount_price}}</span>
        </p>
        <p class="price-o">
          {{tagData.data.original_price}}
        </p>
      </div>
      <div class="time-bg">
        <p class="time-title">距结束剩下：</p>
        <p class="time">
          <span class="day" *ngIf="dayStr > 0" >{{dayStr}}天</span>
          <span class="HH">{{hourStr}}</span>:
          <span class="HH">{{minStr}}</span>:
          <span class="HH">{{secStr}}</span>
        </p>
      </div>
    </div>
    <div class="content-bg">
      <p class="title">{{tagData.data.title}}</p>
      <p class="sale-count">{{tagData.data.sales}}</p>
    </div>
  </div>
  
</ng-container>
<ng-template #elseTemplate>
  
  <div class="bg-bg" [ngStyle]="tagData.cssStyle | styleFilter">
    <div class="o-price-bg">
      <p class="price">
        <span class="o-unit">{{tagData.data.discount_company}}</span>
        <span class="">{{tagData.data.original_price}}</span>
      </p>
      <p class="sale-count">{{tagData.data.sales}}</p>
    </div>

    <p class="o-title">{{tagData.data.title}}</p>
    <p class="o-tip" [ngStyle]="tagData.data.tagsCssStyle | styleFilter">{{tagData.data.tags}}</p>
  </div>
  
</ng-template>
